<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>页面未找到 - 404错误</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 通用样式 */
    :root {
      --primary: #4263EB;
      --light: #F8F9FA;
      --dark: #212529;
      --gray: #6C757D;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    .container {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 2rem 1rem;
    }
    
    .page-title {
      font-size: 8rem;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 1rem;
    }
    
    .page-subtitle {
      font-size: 1.5rem;
      font-weight: 500;
      margin-bottom: 1.5rem;
    }
    
    .page-desc {
      font-size: 1rem;
      color: var(--gray);
      margin-bottom: 2rem;
      max-width: 400px;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
    }
    
    .btn-primary {
      background-color: var(--primary);
      border-color: var(--primary);
      padding: 0.75rem 2rem;
      font-weight: 500;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    
    .btn-primary:hover {
      background-color: #3652d2;
      transform: translateY(-2px);
    }
    
    .footer {
      padding: 1.5rem 0;
      text-align: center;
      color: var(--gray);
      font-size: 0.875rem;
    }
    
    /* 页面切换器 */
    .page-switcher {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 100;
      background: white;
      border-radius: 20px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      overflow: hidden;
    }
    
    .switch-btn {
      border: none;
      background: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      font-size: 0.875rem;
    }
    
    .switch-btn.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 页面1：简约风格 */
    #page1 {
      background-color: white;
      text-align: center;
    }
    
    #page1 .page-title {
      background: linear-gradient(45deg, #4263EB, #38B2AC);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      position: relative;
    }
    
    #page1 .page-title::after {
      content: '';
      position: absolute;
      width: 60%;
      height: 15px;
      background-color: rgba(66, 99, 235, 0.1);
      bottom: 10px;
      left: 20%;
      z-index: -1;
      border-radius: 50%;
    }
    
    /* 页面2：趣味风格 */
    #page2 {
      background-color: #FFF5F5;
      text-align: center;
      display: none;
    }
    
    #page2 .error-illustration {
      width: 220px;
      height: 220px;
      margin: 0 auto 2rem;
      position: relative;
    }
    
    #page2 .emoji {
      font-size: 4rem;
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
    }
    
    #page2 .search-icon {
      font-size: 6rem;
      color: #FF6B6B;
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%) rotate(-15deg);
    }
    
    #page2 .page-title {
      color: #FF6B6B;
    }
    
    #page2 .btn-primary {
      background-color: #FF6B6B;
      border-color: #FF6B6B;
    }
    
    #page2 .btn-primary:hover {
      background-color: #ff5252;
    }
    
    /* 页面3：科技风格 */
    #page3 {
      background-color: #0F172A;
      color: white;
      text-align: center;
      display: none;
    }
    
    #page3 .page-title {
      color: #3B82F6;
      text-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    }
    
    #page3 .page-desc {
      color: #94A3B8;
    }
    
    #page3 .tech-pattern {
      width: 200px;
      height: 200px;
      margin: 0 auto 2rem;
      position: relative;
    }
    
    #page3 .pattern-dot {
      position: absolute;
      width: 6px;
      height: 6px;
      background-color: #3B82F6;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    
    #page3 .footer {
      color: #64748B;
    }
    
    @keyframes pulse {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }
    
    /* 页面4：手绘风格 */
    #page4 {
      background-color: #FFF8E6;
      text-align: center;
      display: none;
    }
    
    #page4 .doodle-illustration {
      width: 220px;
      height: 220px;
      margin: 0 auto 2rem;
      position: relative;
    }
    
    #page4 .doodle-icon {
      font-size: 6rem;
      color: #F59E0B;
      transform: rotate(5deg);
    }
    
    #page4 .page-title {
      font-family: 'Comic Sans MS', cursive;
      color: #D97706;
      transform: rotate(-1deg);
      display: inline-block;
    }
    
    #page4 .page-subtitle {
      font-family: 'Comic Sans MS', cursive;
      color: #B45309;
    }
    
    #page4 .btn-primary {
      background-color: #F59E0B;
      border-color: #F59E0B;
      font-family: 'Comic Sans MS', cursive;
      transform: rotate(1deg);
    }
    
    #page4 .btn-primary:hover {
      background-color: #D97706;
      transform: rotate(1deg) translateY(-2px);
    }
  </style>
</head>
<body>
  <!-- 页面切换器 -->
  <div class="page-switcher">
    <button class="switch-btn active" data-page="page1">风格1</button>
    <button class="switch-btn" data-page="page2">风格2</button>
    <button class="switch-btn" data-page="page3">风格3</button>
    <button class="switch-btn" data-page="page4">风格4</button>
  </div>
  
  <!-- 页面1：简约风格 -->
  <div id="page1">
    <div class="container">
      <h1 class="page-title">404</h1>
      <h2 class="page-subtitle">哎呀，页面找不到了</h2>
      <p class="page-desc">你访问的页面可能已被删除、移动或从未存在过，请尝试其他页面。</p>
      <div class="d-flex justify-content-center gap-3">
        <a href="#" class="btn btn-primary">返回首页</a>
        <a href="#" class="btn btn-outline-secondary">联系我们</a>
      </div>
    </div>
    <div class="footer">
      <p>© 2023 社交平台 版权所有</p>
    </div>
  </div>
  
  <!-- 页面2：趣味风格 -->
  <div id="page2">
    <div class="container">
      <div class="error-illustration">
        <div class="emoji">😕</div>
        <i class="fa fa-search search-icon"></i>
      </div>
      <h1 class="page-title">404</h1>
      <h2 class="page-subtitle">找不到你要的页面哦</h2>
      <p class="page-desc">我们已经派出小机器人寻找，但它好像迷路了... 要不换个地方看看？</p>
      <div class="d-flex justify-content-center gap-3">
        <a href="#" class="btn btn-primary">回到安全区</a>
        <a href="#" class="btn btn-outline-secondary">搜索其他</a>
      </div>
    </div>
    <div class="footer">
      <p>别担心，错误也是互联网的一部分 😊</p>
    </div>
  </div>
  
  <!-- 页面3：科技风格 -->
  <div id="page3">
    <div class="container">
      <div class="tech-pattern">
        <!-- 动态生成的点阵图案 -->
      </div>
      <h1 class="page-title">404</h1>
      <h2 class="page-subtitle">页面访问失败</h2>
      <p class="page-desc">错误代码: ERR_NOT_FOUND<br>请求的资源在服务器上不存在或已被移除</p>
      <div class="d-flex justify-content-center gap-3">
        <a href="#" class="btn btn-primary">返回主页</a>
        <a href="#" class="btn btn-outline-secondary">查看站点地图</a>
      </div>
    </div>
    <div class="footer">
      <p>系统状态正常 | 最后检查: 刚刚</p>
    </div>
  </div>
  
  <!-- 页面4：手绘风格 -->
  <div id="page4">
    <div class="container">
      <div class="doodle-illustration">
        <i class="fa fa-map-signs doodle-icon"></i>
      </div>
      <h1 class="page-title">404</h1>
      <h2 class="page-subtitle">哎呀，迷路啦！</h2>
      <p class="page-desc">这个页面好像跑丢了... 我们正在努力找它，你先回首页逛逛吧~</p>
      <div class="d-flex justify-content-center gap-3">
        <a href="#" class="btn btn-primary">回到首页</a>
        <a href="#" class="btn btn-outline-secondary">随便看看</a>
      </div>
    </div>
    <div class="footer">
      <p>手绘风格 © 2023</p>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 页面切换功能
    document.querySelectorAll('.switch-btn').forEach(btn => {
      btn.addEventListener('click', function() {
        // 更新按钮状态
        document.querySelectorAll('.switch-btn').forEach(b => b.classList.remove('active'));
        this.classList.add('active');
        
        // 显示对应的页面
        const pageId = this.getAttribute('data-page');
        document.querySelectorAll('[id^="page"]').forEach(page => {
          page.style.display = 'none';
        });
        document.getElementById(pageId).style.display = 'block';
      });
    });
    
    // 生成科技风格页面的点阵图案
    function createTechPattern() {
      const container = document.querySelector('#page3 .tech-pattern');
      container.innerHTML = '';
      
      // 创建随机点阵
      for (let i = 0; i < 30; i++) {
        const dot = document.createElement('div');
        dot.classList.add('pattern-dot');
        
        // 随机位置
        const left = Math.random() * 100;
        const top = Math.random() * 100;
        dot.style.left = `${left}%`;
        dot.style.top = `${top}%`;
        
        // 随机动画延迟
        const delay = Math.random() * 2;
        dot.style.animationDelay = `${delay}s`;
        
        container.appendChild(dot);
      }
    }
    
    // 初始化
    window.addEventListener('load', function() {
      createTechPattern();
    });
  </script>
</body>
</html>
